package com.zrar.ak.gkpt.dao;

import com.zrar.ak.gkpt.model.bo.*;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @InterfaceName: IBusinessSchemeRefinementTerminalDao
 * @Description: 方案细化终端表Dao层
 * @Author: CaoTao
 * @Create: 2020/04/03
 */
@Repository("businessSchemeRefinementTerminal")
public interface IBusinessSchemeTerminalInfoDao extends Mapper<BusinessSchemeTerminalInfoBO> {
    /**
     * 根据建设单位删除信息
     *
     * @param id
     * @return
     */
    int deleteTerminalById(String id);

    /**
     * 根据建设单位查询信息
     *
     * @param map
     * @return
     */
    int queryTerminalByUnitId(Map map);

    /**
     * 添加信息
     *
     * @param
     * @return
     */
    int insertInfo(List<BusinessSchemeTerminalInfoBO> terminalInfoBOList);

    //Integer querySchemeShowNum(Map map);

    //List<BusinessSchemeInfoListBO> pagingSchemeInfoList(Map map);

    int updateInfo(List<BusinessSchemeTerminalInfoBO> terminalList);

    int queryByType(Map map);

    List<BusinessSchemeTerminalInfoBO> queryAllByBasicsId(String basicsId);
}
